package com.risk.task.hall.client.resource;

import com.risk.login.dto.LoginUserDto;
import com.risk.task.hall.client.feign.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Desc
 * @Date 2018/5/24:下午11:36
 * @uthor yzMa
 * @email 2641007740@qq.com
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;

    @RequestMapping("/get/{uid}")
    public ResponseEntity<LoginUserDto> getUserInfo(@PathVariable("uid") String uid){
        return userService.getUserInfo(uid);
    }

}
